<template>
  <el-dialog :model-value="supportVisible" title="需要一些帮助?" width="30%" draggable @change="getShow" @close="getShow"
    :close-on-click-modal="false">
    <span>It's a draggable Dialog</span>
    <template #footer>
      <span class="dialog-footer">
        <el-button type="primary" @click="send">
          发送请求
        </el-button>
      </span>
    </template>
  </el-dialog>
</template>


<script setup lang="ts">
const { supportVisible } = defineProps<{ supportVisible: boolean }>()
const emits = defineEmits(["update:supportVisible", "send"])



function getShow() {
  emits("update:supportVisible", false)
}
// 发送请求
function send() {
  emits("send", false)
  getShow()
}


</script>


<style scoped lang="scss"></style>